package org.easy.eao.spring;

import java.util.Set;

import org.easy.eao.Action;
import org.springframework.beans.factory.FactoryBean;

@SuppressWarnings("rawtypes")
public class DefaultActionSet implements FactoryBean {
	
	public static final String ATTRIBUTE_CLASSES = "classes";

	private Set<Class<Action<?>>> classes;

	@Override
	public Object getObject() throws Exception {
		return classes;
	}

	@Override
	public Class getObjectType() {
		return Set.class;
	}

	@Override
	public boolean isSingleton() {
		return true;
	}

	public void setClasses(Set<Class<Action<?>>> classes) {
		this.classes = classes;
	}

}
